<?php
/**
 * Created by PhpStorm.
 * User: superxing-cto
 * Date: 17/5/9
 * Time: 15:35
 */

namespace App\Models;

/**
 * Class ProductRemind
 * @property dateTime remind_time 提醒时间
 * @property integer seller_user_id 卖家id
 * @property integer user_id 买家id
 * @property integer purchase_id 订单id
 * @property integer message_id 消息id
 * @property integer hour 剩余时间2或24
 * @property boolean status 是否已经推送
 */
class ProductRemind extends ApplicationModel
{
    protected $guarded = [];

    public function user()
    {
        return $this->belongsTo(User::class);
    }

    public function sellerUser()
    {
        return $this->belongsTo(User::class, 'seller_user_id');
    }
}